import { store } from '@/utils/store'

Page({

  toPageRoomIn() {
    if (store.user_info.mobile) {
      wx.navigateTo({
        url: '/pages/book2/index?venue=in',
      })
    } else {
      wx.navigateTo({
        url: '/pages/auth_mobile/index?to_page=' + encodeURIComponent("/pages/book2/index?venue=in"),
      })
    }
  },
  toPageRoomOut() {
    if (store.user_info.mobile) {
      wx.navigateTo({
        url: '/pages/book2/index?venue=out',
      })
    } else {
      wx.navigateTo({
        url: '/pages/auth_mobile/index?to_page=' + encodeURIComponent("/pages/book2/index?venue=out"),
      })
    }
  }
})
